#ifndef EXCEPTION_H
#define EXCEPTION_H

#include "includes.h"

class Exception
{
public:
	Exception(const int Line, const char *file, const char *text);
	void showMsg() const;
	virtual ~Exception();

	static void unknown_exit() {
		if (!P_pid()){
			std::cout<<"############################################\n";
			std::cout<<"Simulation has terminated for unknown reason.\n";
			std::cout<<"############################################\n\n";
		}
	}

private:
	int theLine;
	char theFile[256];
	char exceptionMsg[512];
};

#endif
